/**
 * Created with Vim7.3 Mac
 * @fileOverview : 
 * @author : Lyle lylechen2014@gmail.com
 * @since : 2016-08-31 17:37:15
 * @filename : src/base/main.js
 * @version : 
 * @description : 
 */
define(function(require){
          
        var routerConfig = require('{base}/router/router');
        var router = Router(routerConfig);
        router.init();
        window.addEventListener('storage',function(e){
            if (Share.regStorageListener.length) {
            	_.map(Share.regStorageListener,function(func){
                     func(e);
            	})
            }
        });      
        /*
        if(window.location.hash == '') {
             window.location.href = 'https://wwww'+siteName+'.com'; 
        }
        */
});

